﻿using System.ComponentModel.DataAnnotations.Schema;

namespace Project.Models.System.Rest
{
    /// <summary>
    /// 数据字典
    /// </summary>
    public class DataDictionary:BaseEntity
    {
        /// <summary>
        /// 父Id
        /// </summary>
        [ForeignKey(nameof(Dictionary))]
        public long? ParentId { get; set; }
        public DataDictionary Dictionary { get; set; }
        /// <summary>
        /// 根数据:键 子数据:Null
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// 根数据:描述 子数据:值
        /// </summary>
        public string Value { get; set; }
    }
}
